#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;



bool test(vector<string>& v, vector<vector<int>>& t, size_t i, size_t j)
{
	if (i == 0)
	{
		if (j == 0)
		{

		}
	}
	return true;
}



int mainx()
{

	vector<string> v;
	vector<vector<int>> t;
	v.resize(2);
	t.resize(4);

	for (size_t i = 0; i < 2; ++i)
	{
		char* str = nullptr;
		cin >> str;
		v[i] += str;
	}
	t[0].resize(v[0].size(), 0);
	t[1].resize(v[0].size(), 0);
	t[2].resize(v[0].size(), 0);
	t[3].resize(v[0].size(), 0);

	size_t size = 0;


	for (size_t i = 0; i <  2; ++i)
		for (size_t j = 0; j < v[i].size(); ++j)
		{
			if (v[i][j] == '#')
				if (test(v, t, i, j))
					++size;
		}

	cout << size;
	
	return 0;
}